import { Request, Response } from 'express';

export default {
  'POST  /api/forms': (_: Request, res: Response) => {
    res.send({ message: 'Ok' });
  },

  'GET /contract/posthouse/detail': (_: Request, res: Response) => {
    res.send({
      code: 0,
      msg: '成功',
      body: {
        id: 23,
        fcs_id: '1',
        posthouse_id: '2',
        contract_num: '1',
        party_a_name: '主体合同',
        start_day: '2017-10-10',
        end_day: '2019-10-12',
        file_link: 'https://www.baidu.com',
        delivery_service_fee: 123,
        sending_service_fee: 342,
        deposit_service_fee: 1213,
        sms_service_fee: 67,
        withdraw_charge_ratio: 45,
        fcs_name: '合作商名称',
        posthouse_name: '驿站名称',
      },
    });
  },

  'GET /contract/posthouse/franchise_list': (_: Request, res: Response) => {
    res.send({
      code: 0,
      msg: '成功',
      body: {
        fcs_list: [
          { id: '1', name: '合作商1' },
          { id: '2', name: '合作商2' },
          { id: '3', name: '合作商3' },
          { id: '4', name: '合作商4' },
        ],
      },
    });
  },

  'GET /common/org/list': (_: Request, res: Response) => {
    res.send({
      code: 0,
      msg: '成功',
      body: [
        '中科富创（北京）科技有限公司',
        '近邻宝科技有限公司',
        '天津近邻宝科技有限公司',
        '上海世宝信息科技有限公司',
        '武汉近邻宝科技有限公司',
        '广西近邻宝科技有限公司',
        '内蒙古近邻宝科技有限公司',
        '辽宁近邻宝科技有限公司',
        '贵州近邻宝科技有限公司',
        '山东近邻宝信息科技有限公司',
        '河南中科富创科技有限公司',
        '湖南近邻宝科技有限公司',
        '新疆近邻宝信息科技有限公司',
        '山西近邻宝科技有限公司',
        '河北近邻宝科技有限公司',
        '安徽近邻宝信息科技有限公司',
        '陕西近邻宝电子信息科技有限公司',
        '吉林省近邻宝科技有限公司',
      ],
    });
  },

  'GET /contract/posthouse/search_by_name': (_: Request, res: Response) => {
    res.send({
      code: 0,
      msg: '成功',
      // body: {
      //   id: '1',
      //   name: '合作商名称',
      // },
      body: [
        { id: '1', name: '签约驿站1' },
        { id: '2', name: '签约驿站2' },
        { id: '3', name: '签约驿站3' },
      ],
    });
  },

  'POST /contract/posthouse/update': (_: Request, res: Response) => {
    res.send({
      code: 0,
      msg: '成功',
      body: null,
    });
  },

  'POST /contract/posthouse/save': (_: Request, res: Response) => {
    res.send({
      code: 0,
      msg: '成功',
      body: null,
    });
  },

  'GET  /franchisee/detail': (_: Request, res: Response) => {
    res.send({
      code: 0,
      msg: '\u6210\u529f',
      body: {
        id: 28,
        uid: 8504,
        status: 1,
        name: '\u6d4b\u8bd5\u5408\u4f5c\u5546lin1',
        address: '\u5b8f\u6e90\u5927\u53a62222',
        contact: '\u853a\u4e00',
        phone: '15801107600',
        start_time: '2019-07-04 17:17:50',
        end_time: '2025-07-01 00:00:00',
        parent_id: 1,
        level: 1,
        is_postpone_withdraw: 0,
        can_withdraw_date: null,
        can_withdraw: 1,
        withdraw_oper_user: 0,
        withdraw_oper_time: null,
        consume_warn_amount: 0,
        enable_push: 0,
        push_url: '',
        push_token: '',
        create_uspace: 1,
        update_uspace: 0,
        create_user: 8504,
        update_user: 0,
        create_time: '2019-07-04 17:17:56',
        update_time: '2019-07-04 17:17:56',
        parent: {
          id: 1,
          uid: 0,
          status: 1,
          name: '\u4e2d\u79d1\u5bcc\u521b',
          address: '',
          contact: '',
          phone: '',
          start_time: null,
          end_time: null,
          parent_id: 0,
          level: 0,
          is_postpone_withdraw: 0,
          can_withdraw_date: null,
          can_withdraw: 1,
          withdraw_oper_user: 8518,
          withdraw_oper_time: '2019-07-04 15:01:48',
          consume_warn_amount: 0,
          enable_push: 0,
          push_url: '',
          push_token: '',
          create_uspace: 0,
          update_uspace: 1,
          create_user: 0,
          update_user: 8518,
          create_time: null,
          update_time: '2019-07-04 15:01:48',
        },
        garden_id_list: [],
        file_link_list: [
          'http://cdn.test.jinlb.cn:9999/attach/2e/88/2e8847eea19a609645cf265165cebbf6.pdf',
        ],
        region_list: [
          {
            parea_name: '\u5317\u4eac',
            carea_name: '\u5317\u4eac\u5e02',
            darea_name: '',
            is_exclusive: 1,
          },
        ],
        garden_list: [],
      },
    });
  },
};
